export default class Vector3 {

  constructor(x = 0, y = 0, z = 0) {
    this.x = x;
    this.y = y;
    this.z = z;
  }

  static ObjToVector3(obj) {
    return new Vector3(obj.x, obj.y, obj.z);
  }

  static NumberToVector3(num, axis) {
    return new Vector3(num * axis.x, num * axis.y, num * axis.z);
  }

  static Zero() {
    return new Vector3(0, 0, 0);
  }
}